package Controllers;

import Models.*;
import java.util.ArrayList;

/**
 * @author Tanja
 */

public class EmployeeCTR
{
    private EmployeeCollection employees;

    public EmployeeCTR()
    {
        this.employees = EmployeeCollection.getInstance();
    }

    public Employee addEmployee(String name, Location location)
    {
        Employee employee = new Employee(name, location);
        this.employees.addEmployee(employee);
        return employee;
    }

    public ArrayList<Employee> findEmployee(String name, Location location)
    {
        return this.employees.findEmployee(name, location);
    }

    public Employee getEmployee(int id)
    {
        return this.employees.getEmployee(id);
    }

	public ArrayList<Employee> getAllEmployee()
	{
		return this.employees.getAllEmployees();
	}

    public void removeEmployee(Employee employee)
    {
		this.employees.removeEmployee(employee);
    }
}
